home *** CD-ROM | disk | FTP | other *** search
/ Collection of Internet / Collection of Internet.iso / msdos / lynx / source / doslynx / src / tcaptur4.cpp < prev    next >
Encoding:
C/C++ Source or Header  |  1994-10-25  |  925 b   |  28 lines

  1. //    Copyright (c) 1994, University of Kansas, All Rights Reserved
  2. //
  3. //    Class:        TCapture
  4. //    Include File:    tcapture.h
  5. //    Purpose:    Captures c streams stdout and sterr to a window.
  6. //    Remarks/Portability/Dependencies/Restrictions:
  7. //        Works in conjuction with the c source file capstdio.c and
  8. //        two global variables capstdout and capstderr in globals.c
  9. //    Revision History:
  10. //        01-08-94    created
  11. //        02-09-94    Split all members into seperate files.
  12. #include"tcapture.h"
  13.  
  14. extern "C" void cap_stdout(const char *cp)    {
  15. //    Purpose:    Write a string into our terminal.
  16. //    Arguments:    cp    The string to write into our terminal.
  17. //    Return Value:    void
  18. //    Remarks/Portability/Dependencies/Restrictions:
  19. //        If the window is hidden, this function will cause it to show.
  20. //        Depends upon the global variable TC.
  21. //    Revision History:
  22. //        01-08-94    created
  23.  
  24.     ::TC->show();
  25.     ::TC->makeFirst();
  26.     ::TC->DumbStream << cp;
  27. }
  28.